home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar Extras 3
/
Ex3side3.d64
/
meister basic
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-28
|
14KB
|
400 lines
99 rem@ s 1024
110 poke56,112:clr:poke650,128:d=rnd(-ti)
120 d=8:mb=32768:box=mb+3:ip=mb+198:ce=mb+78:br=mb+99:at=mb+75:gw=mb+51
125 parameters=828:ph=int(pa/256):pl=par-256*ph
126 ft=120*256:fh=int(ft/256):fl=ft-256*fh
130 fr=mb+6:sh=mb+96:dimc(7),t%(128,1),tr%(74),se%(75):l1=15:l2=12
140 c(0)=15:c(1)=13:c(2)=7:c(3)=3:c(4)=14:c(5)=4:c(6)=10:c(7)=8
145 fori=0to126:readt%(i,0),t%(i,1)
146 ift%(i,0)>60thent%(i,0)=0
147 ift%(i,1)>60thent%(i,1)=0
148 next
160 print"([195]) 1997 by [202]&[198] [208]ublishing":gosub6690:print""
165 print"([195]) 1997 by [202]&[198] [208]ublishing"
170 t$="[196][201][210][197][195][212][207][205][197][201][211][212][197][210] [201][201][201]"
180 gosub930
190 ifd>7thent$=t$+" - [196]evice:"+str$(d)
200 a$(01)="[211]elect [196]evice [206]umber (#)"
210 a$(02)="[194]atch [210][197][206][193][205][197] [198]iles (r)"
220 a$(03)="[194]atch [196][197][204][197][212][197] [198]iles (d)"
230 a$(04)="[194]atch [208]refix [206]ames (p)"
240 a$(05)="[194]atch [196]e-[208]refix [206]ames ([208])"
260 a$(06)="[197]dit [196]irectory (e)"
270 a$(07)="[211]end [196]isk [195]ommand (@)"
280 a$(08)="[212][210][193][195][197] [198]ile [204]inks (t)"
290 a$(09)="[198][204][213][211][200] [196][197][204] [198]iles (f)"
300 a$(08)="[210]eturn to [204][207][193][196][211][212][193][210] (q)"
310 hotkey$=chr$(255)+"#rdp[208]e@q"
320 ni=8:gosub5000:f%=it:gosub930
330 iff%=12thengosub930
340 onf%gosub350,490,600,680,780,6000,9500,1080:goto170
350 ni=1:forx=8to29
360 ifx<>14thenopen2,x,2:close2
370 ifst=0thena$(ni)="("+mid$(str$(ni),2)+") [196]rive "+str$(x):ni=ni+1
380 next:a$(ni)="([209]) [196]on't change drive "
385 hot$="1234567":hot$=chr$(255)+left$(hot$,ni-1)+"q"
390 t$="[211][197][210][201][193][204] [196][197][214][201][195][197] [205][197][206][213]":gosub5000:ifit=nithenreturn
400 d=val(mid$(a$(f%),10)):return
490 mode=1:a$="[194]atch [210]ename":gosub2000:gosub1030
500 ch=0:a$="[208]rocessing...":gosub910
510 forjj=0tofiles-1:item=jj:gosub3500:iff%=0then580
520 f$=w$:ch=ch+1
530 x1=2:x2=37:y1=22:y2=22:sc=32:bc=7:gosub2200:poke199,0:poke646,3
540 x=2:y=22:gosub2300:printf$" = ";:tx=1:cu=4:limit=16:gosub2500
550 ifw$=f$then580
555 ifw$=""then580
560 close15:open15,d,15,"r0:"+w$+"="+f$:gosub1070:ifval(e$)=0then580
570 a$=c$+"! [211]kip/[210]etry/[209]uit":k$="srq":gosub920:onf%goto580,520,590
580 next:ifchthengosub2100
585 return
590 i=files:goto580
600 a$="[194]atch [196]elete":gosub2000:mode=1:gosub1030
610 ch=0:a$="[193]re you sure? ([217]/[206])":k$="yn":gosub920:iff%=2thenreturn
620 a$="[208]rocessing...":gosub910
630 forjj=0tofiles-1:it=jj:gosub3500:iff%=0then660
640 ch=ch+1:close15:open15,d,15,"s0:"+w$:gosub1070:ifval(e$)=1then660
650 a$=c$+"! [211]kip/[210]etry/[209]uit":k$="srq":gosub920:onf%goto660,640,670
660 next:ifchthengosub2100
665 return
670 i=files:goto660
680 ch=0:a$="[194]atch [208]refix":gosub2000:mode=1:gosub1030
690 x1=2:x2=37:y1=22:y2=22:sc=32:bc=7:gosub2200:poke199,0:poke646,3
700 x=4:y=22:gosub2300:print"[208]refix: ";:te=1:cu=4:li=15:w$="":gosub2500
705 ifw$=""thenreturn
710 p$=w$:a$="[208]rocessing...":gosub910
720 forjj=0tofiles-1:it=jj:gosub3500:iff%=0then760
730 f$=w$:ch=ch+1
740 close15:open15,d,15,"r0:"+p$+w$+"="+f$:gosub1070:ifval(e$)=0then760
750 a$=c$+"! [211]kip/[210]etry/[209]uit":k$="srq":gosub920:onf%goto760,740,770
760 next:ifchthengosub2100
765 return
770 i=files:goto760
780 ch=0:a$="[194]atch [196]e-[208]refix":gosub2000:mode=1:gosub1030
790 x1=2:x2=37:y1=22:y2=22:sc=32:bc=7:gosub2200:poke199,0:poke646,3
800 x=3:y=22:gosub2300:print"[210]emove prefix: ";
805 w$="":te=1:cu=4:li=15:gosub2500:ifw$=""thenreturn
810 p$=w$:a$="[208]rocessing...":gosub910
820 forjj=0tofiles-1:it=jj:gosub3500:iff%=0then880
830 f$=w$:ch=ch+1
840 ifleft$(f$,len(p$))<>p$then880
850 dp$=mid$(f$,len(p$)+1)
860 close15:open15,d,15,"r0:"+dp$+"="+f$:gosub1070:ifval(e$)=0then880
870 a$=c$+"! [211]kip/[210]etry/[209]uit":k$="srq":gosub920:onf%goto880,840,890
880 next:ifchthengosub2100
885 return
890 i=files:goto880
900 stop
910 x1=2:x2=37:y1=22:y2=22:sc=160:bc=7:gosub2200:poke199,1:poke646,7
915 poke211,20-(len(a$)/2):poke214,22:sys58732:printa$:return
920 gosub910:gosub3100:return
930 t=t%(tc,0):c=95:gosub2900:cc=cc+1:ifcc>6thencc=0
935 l1=c(cc):l2=c(cc+1)
940 t=t%(tc,1):c=105:gosub2900:c1=95:c2=95:c=l1:gosub3000
945 tc=tc+1:iftc=127thentc=0
950 a=105:b=105:c=l2:gosub3600
955 a=95:b=95:c=l1:gosub3600
960 return
970 stop
980 sysip,t$,7,a$,b$,c$,d$,e$,f$,g$,l$:gosub930:so=f%
990 iff%=7thenreturn
1020 rem get regular dir from selected divice
1030 a$="[199]etting directory...":gosub910
1040 di$="$:*":loc=40960:gosub3300:files=f%
1045 x1=3:x2=33:y1=8:y2=20:gosub2800:x1=4:x2=35:y1=5:y2=19:fc=7:gosub2600
1050 a$="[195][210][211][210]/[210][197][212][213][210][206] to [211]elect"
1052 ifmodethena$="[210][197][212][213][210][206] add file +- page [198]1 done
1055 [139]mode[178]2[167]a$[178]"(NULL)hen done viewing, asc1 exits"
1060 [141]910:x[178]5:y1[178]6:y2[178]18:mr[178]0:mc[178]3:mh[178]13:ms[178]1:[141]3400:[142]
1070 [132]15,b$,c$,d$,e$:e$[178]b$[170]","[170]c$[170]","[170]d$[170]","[170]e$:[142]
1080 [141]6710:[129]i[178]0[164]21:[151]828[170]i,8[170]i:[130]
1090 [139]dv[179]8[176]dv[177]29[176]dv[178]8[167]1110
1100 a[178][194](828):b[178][194](828[170]dv[171]8):[151]828,b:[151]828[170]dv[171]8,a
1110 a$[178]"presenter":[141]1120:a$[178]"hello connect"
1120 [129]j[178]8[164]29:i[178][194](828[170]j[171]8):[139]i[178]14[167][130]
1130 [160]2:[159]2,i,2:[160]2:[139]st[167]1150
1140 [160]15:[159]15,i,15,"r0:"[170]a$[170]"="[170]a$:[132]15,er:[160]15:[139]er[178]63[167]1170
1150 [130]:[139]a$[178]"presenter"[167][142]
1160 [153]"load":[151]53272,23:[151]186,8:[151]2048,0:[151]44,8:[151]43,1:[128]
1170 a$[178]"hello connect":q$[178][199](34):[151]646,[194](53281):[153]"load":[151]53272,23
1180 [153]"loadp(NULL)2048,0:p(NULL)44,8:p(NULL)43,1:p(NULL)56,160:p(NULL)55,0:clr:l(NULL)"q$a$q$","i
1190 [153]"p(NULL)53272,23:run:":[151]631,13:[151]632,13:[151]198,2:[128]
2000 x1[178]4:x2[178]35:y1[178]3:y2[178]3:sc[178]160:bc[178]7:[141]2200:[153]"sys";
2010 [151]214,3:[151]211,20[171]([195](a$)[173]2):[158]58732:[153]a$:[142]
2100 x1[178]0:x2[178]39:y1[178]0:y2[178]24:sc[178]255:bc[178]15:[141]2200
2110 a$[178]"(NULL)eview lenhanged str$irectory":[141]2000:mode[178]2:[141]1030:[142]
2199 [143] box
2200 [151]parms,x1:[151]parms[170]1,x2:[151]parms[170]2,y1:[151]parms[170]3,y2:[151]parms[170]4,sc
2210 [151]parms[170]5,bc:[151]781,pl:[151]782,ph:[158]mb[170]105:[142]
2299 [143] move cursor
2300 [151]211,x:[151]214,y:[158]58732:[142]
2499 [143] getword
2500 [151]pa,tx:[151]pa[170]1,curs:[151]pa[170]2,limit:[151]pa[170]3,[195](w$)
2510 [129]i[178]1[164][195](w$)
2520 [151]par[170]3[170]i,[198]([202](w$,i,1)[170][199](0)):[130]:[151]pa[170]3[170]i,0
2530 [151]781,pl:[151]782,ph:[158]mb[170]150:w$[178]"":gl[178][194](780):[139]gl[178]0[167]:[142]
2540 n[178][194](782)[172]256[170][194](781):[129]i[178]1[164]gl:w$[178]w$[170][199]([194](n[171]1[170]i)):[130]
2550 [142]
2599 [143] frame
2600 [151]parms,x1:[151]parms[170]1,x2:[151]parms[170]2,y1:[151]parms[170]3,y2:[151]parms[170]4,fc
2610 [151]781,pl:[151]782,ph:[158]mb[170]108:[142]
2699 [143] lattice
2700 [151]parms,x1:[151]parms[170]1,x2:[151]parms[170]2,y1:[151]parms[170]3,y2:[151]parms[170]4,s1
2710 [151]pa[170]5,s2:[151]pa[170]6,c1:[151]pa[170]7,c2:[151]781,pl:[151]782,ph:[158]mb[170]102:[142]
2799 [143] shade
2800 [151]parms,x1:[151]parms[170]1,x2:[151]parms[170]2,y1:[151]parms[170]3,y2
2810 [151]781,pl:[151]782,ph:[158]mb[170]192:[142]
2899 [143] copy tile
2900 [151]pa,fl:[151]pa[170]1,fh:[151]pa[170]2,t:[151]pa[170]3,c
2910 [151]781,pl:[151]782,ph:[158]mb[170]111:[142]
2999 [143] char swap
3000 [151]parms,c1:[151]parms[170]1,c2:[151]parms[170]2,c
3010 [151]781,pl:[151]782,ph:[158]mb[170]186:[142]
3099 [143] brancher
3100 k$[178]k$[170][199](0):[129]i[178]1[164][195](k$):[151]pa[171]1[170]i,[198]([202](k$,i,1)):[130]
3105 [151]781,pl:[151]782,ph
3110 [158]mb[170]195:item[178][194](253)
3120 [142]
3199 [143] screen to menu
3200 [151]pa,y:[151]pa[170]1,x1:[151]pa[170]2,x2:[151]pa[170]3,mi:[151]pa[170]4,mc:[151]pa[170]5,mh
3205 [139][2